package com.xmb.common.service;

import com.xmb.common.entity.XmbSpreadRewardSetting;

import java.util.List;

/**
 * Created by lyndon on 2019/4/10.
 * 营销配置信息
 */
public interface SpreadRewardSettingService {

    /**
     * 保存营销配置信息
     * @param xmbSpreadRewardSetting
     * @return
     */
    int saveXmbSpreadRewardSetting(XmbSpreadRewardSetting xmbSpreadRewardSetting);

    /**
     * 修改营销配置信息
     * @param xmbSpreadRewardSetting
     * @return
     */
    int updateRewardSettingByActivityId(XmbSpreadRewardSetting xmbSpreadRewardSetting);

    /**
     * 删除营销配置信息
     * @param activityIds
     * @return
     */
    int deleteRewardSettingByActivityIds( List<Long> activityIds);

    /**
     * 获取营销配置信息
     * @param activityId 活动id
     * @param path 页面路径
     * @return
     */
    XmbSpreadRewardSetting findByActivityIdAndPath(Long activityId,String path);

    /**
     * 获取营销配置信息
     * @param xmbSpreadRewardSetting
     * @return
     */
    XmbSpreadRewardSetting findXmbSpreadRewardSetting(XmbSpreadRewardSetting xmbSpreadRewardSetting);


}
